﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using DoeObjects;

namespace DoeLibsMVC.Controllers.api
{
    public class ReservationsForTitleController : ApiController
    {
        /// <summary>
        /// returns all reservations for the given title
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IEnumerable<Reservation> Get(int id)
        {
            return Reservation.getReservations(id);
        }
    }
}
